using System;
using WebServiceTI.BusinessEntities;
using WebServiceTI.DataContracts;

namespace WebServiceTI.ServiceImplementation
{
    public static class TranslateBetweenPersonalDataAndPersonalData
    {
        public static WebServiceTI.BusinessEntities.PersonalData TranslatePersonalDataToPersonalData(WebServiceTI.DataContracts.PersonalData from)
        {
            WebServiceTI.BusinessEntities.PersonalData to = new WebServiceTI.BusinessEntities.PersonalData();
            to.First_name = from.First_name;
            to.Last_name = from.Last_name;
            return to;
        }

        public static WebServiceTI.DataContracts.PersonalData TranslatePersonalDataToPersonalData(WebServiceTI.BusinessEntities.PersonalData from)
        {
            WebServiceTI.DataContracts.PersonalData to = new WebServiceTI.DataContracts.PersonalData();
            to.First_name = from.First_name;
            to.Last_name = from.Last_name;
            return to;
        }
    }
}

